package com.ruoyi.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品明细对象 orderItems
 * 
 * @author ruoyi
 * @date 2025-06-10
 */
public class OrderItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品表id */
    private Long orderItemId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodId;

    /** 校区ID */
    @Excel(name = "校区ID")
    private Long campusId;

    /** 商品原价 */
    @Excel(name = "商品原价")
    private BigDecimal goodOriginalPrice;

    /** 商品折后价 */
    @Excel(name = "商品折后价")
    private BigDecimal goodDiscountPrice;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    /** 小计金额 */
    @Excel(name = "小计金额")
    private BigDecimal totalprice;

    /** 分销员ID */
    @Excel(name = "分销员ID")
    private Long distributionId;

    /** 支付状态(0未支付1已支付2退款中3已退款) */
    @Excel(name = "支付状态(0未支付1已支付2退款中3已退款)")
    private Integer payStatus;

    /** 商品货物状态(0待发货1已发货2已收货3待退货4已退货) */
    @Excel(name = "商品货物状态(0待发货1已发货2已收货3待退货4已退货)")
    private Integer orderItemStatus;

    /** 商品是否逻辑删除（0否1是）默认0不删除 */
    private Integer isDeleted;

    /** 创建时间 */
    private String createdTime;

    /** 更新时间 */
    private String updatedTime;

    /** 备注1 */
    private String demo1;

    /** 备注2 */
    private String demo2;

    /** 备注3 */
    private String demo3;

    public void setOrderItemId(Long orderItemId) 
    {
        this.orderItemId = orderItemId;
    }

    public Long getOrderItemId() 
    {
        return orderItemId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }

    public void setCampusId(Long campusId) 
    {
        this.campusId = campusId;
    }

    public Long getCampusId() 
    {
        return campusId;
    }

    public void setGoodOriginalPrice(BigDecimal goodOriginalPrice) 
    {
        this.goodOriginalPrice = goodOriginalPrice;
    }

    public BigDecimal getGoodOriginalPrice() 
    {
        return goodOriginalPrice;
    }

    public void setGoodDiscountPrice(BigDecimal goodDiscountPrice) 
    {
        this.goodDiscountPrice = goodDiscountPrice;
    }

    public BigDecimal getGoodDiscountPrice() 
    {
        return goodDiscountPrice;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setTotalprice(BigDecimal totalprice) 
    {
        this.totalprice = totalprice;
    }

    public BigDecimal getTotalprice() 
    {
        return totalprice;
    }

    public void setDistributionId(Long distributionId) 
    {
        this.distributionId = distributionId;
    }

    public Long getDistributionId() 
    {
        return distributionId;
    }

    public void setPayStatus(Integer payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus() 
    {
        return payStatus;
    }

    public void setOrderItemStatus(Integer orderItemStatus) 
    {
        this.orderItemStatus = orderItemStatus;
    }

    public Integer getOrderItemStatus() 
    {
        return orderItemStatus;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public void setCreatedTime(String createdTime) 
    {
        this.createdTime = createdTime;
    }

    public String getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(String updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public String getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setDemo1(String demo1) 
    {
        this.demo1 = demo1;
    }

    public String getDemo1() 
    {
        return demo1;
    }

    public void setDemo2(String demo2) 
    {
        this.demo2 = demo2;
    }

    public String getDemo2() 
    {
        return demo2;
    }

    public void setDemo3(String demo3) 
    {
        this.demo3 = demo3;
    }

    public String getDemo3() 
    {
        return demo3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderItemId", getOrderItemId())
            .append("orderId", getOrderId())
            .append("goodId", getGoodId())
            .append("campusId", getCampusId())
            .append("goodOriginalPrice", getGoodOriginalPrice())
            .append("goodDiscountPrice", getGoodDiscountPrice())
            .append("quantity", getQuantity())
            .append("totalprice", getTotalprice())
            .append("distributionId", getDistributionId())
            .append("payStatus", getPayStatus())
            .append("orderItemStatus", getOrderItemStatus())
            .append("isDeleted", getIsDeleted())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("demo1", getDemo1())
            .append("demo2", getDemo2())
            .append("demo3", getDemo3())
            .toString();
    }
}
